package com.itheima.mapper;

import com.itheima.pojo.Flavors;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author :WuJunJie
 * packageName :com.itheima.mapper
 * fileName :FlavorsMapper
 * creationTime :2022-11-23 20:25
 */
@Mapper
public interface FlavorsMapper {
    Flavors selectById(@Param("flavorsId") String flavorsId);

    List<Flavors> selectBydishId(@Param("dishId") String dishId);

    Integer insertListFlavors(@Param("flavors") List<Flavors> flavors);

    Integer deleteFlavorsByDishIds(@Param("dishIds") List<String> dishIds);

    Integer deleteFlavorsByDishId(@Param("dishId") String dishId);

    Integer updateflavors(@Param("flavors") List<Flavors> flavors);

    Flavors selectByDishIdAndName(@Param("flavors") Flavors flavors);

    Integer insertFlavors(@Param("flavor") Flavors flavor);

    Integer updateflavor(@Param("flavor") Flavors flavor);

    List<Flavors> selectBydishIds(@Param("dishIds") Set<String> dishIds);

}
